from random import randint

class Die:
    def __init__(self, numOfSide = 6):
        self.sides = numOfSide

    def roll_die(self, n):
        for i in range(n - 1):
            print(randint(1, self.sides), end = ',')
        print(randint(1, self.sides))

if __name__ == "__main__":
    ROLLNUM = 10

    n = input('输入骰子的面数：')
    while not(n.isdigit()) or (n := int(n)) == 0:
        n = input("输入错误，请输入正整数:")

    myDie = Die(n)
    myDie.roll_die(ROLLNUM)